package com.ziqing.apeletnews.adapter;

import android.content.Context;
import android.support.annotation.NonNull;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.ziqing.apeletnews.R;
import com.ziqing.apeletnews.base.BaseAdapter;
import com.ziqing.apeletnews.base.BaseViewHolder;

import java.util.List;

/**
 * Created by abc on 2018-04-28.
 */

public class RemindAdapter extends BaseAdapter<String> {

    public RemindAdapter(@NonNull Context mContext, @NonNull List<String> listData, int layoutId) {
        super(mContext, listData, layoutId);
    }

    @Override
    public void onBindViewHolder(BaseViewHolder holder, String data, int position) {
        ImageView ivContent=holder.getView(R.id.iv_content);
        Glide.with(mContext).load(data.toString()).into(ivContent);
    }
}
